#include "Player.h"
#include "wchar.h"
#include "ClientHandler.h"


Player::Player()
:playerID(-1),chessmanType(None),handler(0)
{
	wmemset(playerName,0,sizeof(playerName));
}

void Player::setPlayerName(const wchar_t* name)
{
	wmemcpy(playerName,name,wcslen(name));
}

void Player::send(const char* buffer,int len)
{
	handler->sendMsg(buffer,len);
}

void Player::onMessage(const MsgHeader* msg)
{

}